package com.rightsidetech.activity.dto.request.gift;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;
import java.io.Serializable;
import java.util.List;

@Data
public class ActGiftMallTypeReq implements Serializable {
    
    @ApiModelProperty(value = "商城分类id",required = true)
    @NotNull(message = "商城分类id不允许为空")
    @Min(value = 1,message = "id不可小于1")
    private Long mallTypeId;

    @ApiModelProperty(value = "商城分类名称",required = true)
    @NotBlank(message = "分类名称不可为空")
    @Pattern(regexp = "[\\u4e00-\\u9fa5a-zA-Z0-9-.]{0,10}+",message = "分类名称不允许特殊字符长度最大为10")
    private String mallTypeName;

    @ApiModelProperty(value = "换购商品id",required = true)
    @NotEmpty(message = "换购商品id不可为空")
    private List<ActGiftMallTypeIdAndNumbersReq> giftCommodityIds;
}
